function setCookie (key, value, options) {
	if (!isCookieKey(key)) {
		return;
	}
	options = options || {};
	var expires = options.expires;
	if ('number' == typeof options.expires) {
		expires = new Date();
		expires.setTime(expires.getTime() + options.expires * 1000);
	}
	document.cookie = key + "=" + value
	 + (options.path ? "; path=" + options.path: "")
	 + (expires ? "; expires=" + expires.toUTCString() : "")
	 + ("; domain=" + (options.domain ? options.domain: location.hostname))
	 + (options.secure ? "; secure": "");
}
function getCookie (key) {
	if (isCookieKey(key)) {
		var reg = new RegExp('(^| )' + key + '=([^;]*)(;|\x24)'),
		result = reg.exec(document.cookie);
		if (result) {
			var value = (result[2] === undefined || result[2] === null) ? '': result[2];
		}
	}
	if ('string' == typeof value) {
		return value;
	}
	return '';
}
function isCookieKey (key) {
	return (new RegExp('^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\"\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+\x24')).test(key);
}





var hz6d_from_page = getCookie("baidu_keyword"),
kf_72076196_keyword_ok = getCookie("baidu_keyword_ok");

var hz6d_referer = '&referer=' + window.location.href;

document.getElementById("Remark2").value=hz6d_from_page;








